<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:include="inc/home::header">
</head>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
body, html {
	overflow-y: auto;
	background: #fff
}
</style>
</head>
	<body>
		<div class="project-view">
		  <form id="roleForm">
				<input type="text"  readonly="readonly"  style="display: none" name="id"  /> 
			   <table width="100%" align="center" cellpadding="0" cellspacing="0">
			  <tr>
				<td width="20%" align="right"><span class="color-red">*</span>用户角色：</td>
				<td width="80%"><input type="text" class="input-pub"  name="roleName" id="roleName" /></td>
			  </tr>
			  <tr>
				<td align="right">备注：</td>
				<td><textarea rows="4" class="textarea-pub"  name="roleRemark"   ></textarea></td>
			  </tr>		  
			</table>
				</form>
		</div>
	</body>
<script th:inline="javascript">  
/*<![CDATA[*/  
           
           
             function verifyNull(obj){
	
		if(obj == null||obj.val()==""||obj.val()=="请选择"){
			top.$.Zebra_Dialog('<div class="prompt"><div class="warning-icon"></div><div class="success-title">输入的内容不能包含空</div></div>', {
				'title':'提示',
	 	         'buttons':['确定']
		     });
			return false;
		}
	return true;
}      
 function getData(){
	if(!verifyNull($("#roleName"))){
 		return false;
 	}
	return true;
 }
    var role = [[${role}]];  
    if(role!=null){
        loadData(role);
    }
/*]]>*/  
</script>
</html>